package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mx.dao.ProductDao;
import mx.entity.Product;
import mx.service.ProductService;

@Service
public class ProductServiceImpl implements ProductService {
	@Resource
	private ProductDao productDao;

	public List<Product> list(Map<String, Object> map) {
		return productDao.list(map);
	}

	public Product find(Product product) {
		return productDao.find(product);
	}

	public Long getTotal(Map<String, Object> map) {
		return productDao.getTotal(map);
	}

	public int update(Product product) {
		return productDao.update(product);
	}

	public int delete(Integer id) {
		return productDao.delete(id);
	}

	public int add(Product product) {
		return productDao.add(product);
	}

}
